
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'

import sell from './components/sell/sell'
import find from './components/find/find'
import order from './components/order/order'
import person from './components/person/person'

import sellchild1 from './components/sell/sellchild1'
import selllist from './components/sell/selllist'
import personlogin from './components/person/login'

Vue.use(VueRouter)

const routes = [
  {path:'/',component:sell},
  {path:'/sell',component:sell},
  {path:'/find',component:find},
  {path:'/order',component:order},
  {path:'/person',component:person}, 
  
{path:'/sell/:id',component:sellchild1},
  {path:'/selllist/:title',component:selllist},
  
  {path:'/person/login',component:personlogin},
]

const router = new VueRouter({
  routes
})
//router.push('/sell')

FastClick.attach(document.body)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
